package org.link.bean;

import java.util.Date;
import java.util.List;

/**
 * 
 * project_name:springdemo2
 * package_name:org.link.bean
 * file_name:Product.java
 * @author Link
 * create_date:2015年11月13日 下午5:19:23
 * modified_date:
 * description:产品实体类
 *
 */
public class Product {
	private Integer pid;		//逻辑主键
	private String pbrand;		//品牌
	private String pname;		//型号
	private double psize;		//尺寸
	private Integer pprice;		//价格
	private String 	pnetwork;	//网络类型
	private String pos;			//操作系统
	private String prom;		//机身内存
	private String presolution;	//分辨率
	private Integer pcount;		//销量
	private Date pcreattime;	//上架时间
	private Integer pgood;		//好评数
	private List<String> allBrands;
	private Integer totalPage;	//总页数
	
	public Product() {
		super();
	}

	public Product(Integer pid, String pbrand, String pname, double psize,
			Integer pprice, String pnetwork, String pos, String prom,
			String presolution, Integer pcount, Date pcreattime, Integer pgood) {
		super();
		this.pid = pid;
		this.pbrand = pbrand;
		this.pname = pname;
		this.psize = psize;
		this.pprice = pprice;
		this.pnetwork = pnetwork;
		this.pos = pos;
		this.prom = prom;
		this.presolution = presolution;
		this.pcount = pcount;
		this.pcreattime = pcreattime;
		this.pgood = pgood;
	}

	public Product(Integer pid, String pbrand, String pname, double psize,
			Integer pprice, String pnetwork, String pos, String prom,
			String presolution, Integer pcount, Date pcreattime, Integer pgood,
			List<String> allBrands) {
		super();
		this.pid = pid;
		this.pbrand = pbrand;
		this.pname = pname;
		this.psize = psize;
		this.pprice = pprice;
		this.pnetwork = pnetwork;
		this.pos = pos;
		this.prom = prom;
		this.presolution = presolution;
		this.pcount = pcount;
		this.pcreattime = pcreattime;
		this.pgood = pgood;
		this.allBrands = allBrands;
	}

	public Integer getPid() {
		return pid;
	}

	public void setPid(Integer pid) {
		this.pid = pid;
	}

	public String getPbrand() {
		return pbrand;
	}

	public void setPbrand(String pbrand) {
		this.pbrand = pbrand;
	}

	public String getPname() {
		return pname;
	}

	public void setPname(String pname) {
		this.pname = pname;
	}

	public double getPsize() {
		return psize;
	}

	public void setPsize(double psize) {
		this.psize = psize;
	}

	public Integer getPprice() {
		return pprice;
	}

	public void setPprice(Integer pprice) {
		this.pprice = pprice;
	}

	public String getPnetwork() {
		return pnetwork;
	}

	public void setPnetwork(String pnetwork) {
		this.pnetwork = pnetwork;
	}

	public String getPos() {
		return pos;
	}

	public void setPos(String pos) {
		this.pos = pos;
	}

	public String getProm() {
		return prom;
	}

	public void setProm(String prom) {
		this.prom = prom;
	}

	public String getPresolution() {
		return presolution;
	}

	public void setPresolution(String presolution) {
		this.presolution = presolution;
	}

	public Integer getPcount() {
		return pcount;
	}

	public void setPcount(Integer pcount) {
		this.pcount = pcount;
	}

	public Date getPcreattime() {
		return pcreattime;
	}

	public void setPcreattime(Date pcreattime) {
		this.pcreattime = pcreattime;
	}

	public Integer getPgood() {
		return pgood;
	}

	public void setPgood(Integer pgood) {
		this.pgood = pgood;
	}

	public List<String> getAllBrands() {
		return allBrands;
	}

	public void setAllBrands(List<String> allBrands) {
		this.allBrands = allBrands;
	}

	public Integer getTotalPage() {
		return totalPage;
	}

	public void setTotalPage(Integer totalPage) {
		this.totalPage = totalPage;
	}

	@Override
	public String toString() {
		return "Prouct [pid=" + pid + ", pbrand=" + pbrand + ", pname=" + pname
				+ ", psize=" + psize + ", pprice=" + pprice + ", pnetwork="
				+ pnetwork + ", pos=" + pos + ", prom=" + prom
				+ ", presolution=" + presolution + ", pcount=" + pcount
				+ ", pcreattime=" + pcreattime + ", pgood=" + pgood + "]";
	}
}
